/**
 * 
 */
package org.gigi.security.service.base;

import java.util.List;

import org.gigi.security.domain.Authority;
import org.gigi.security.repository.AuthorityRepository;
import org.gigi.security.service.AuthorityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 权限业务层。
 *
 * @author Eugene Wang 2011-10-14
 * @see
 */
@Service
@Transactional(readOnly = true)
public class DefaultAuthorityService implements AuthorityService {
	@Autowired
	private AuthorityRepository authorityRepository;

	/* (non-Javadoc)
	 * @see org.gigi.security.service.AuthorityService#findAll()
	 */
	@Override
	public List<Authority> findAll() {
		List<Authority> result = authorityRepository.findAll();
		return result;
	}
}
